@charset 'utf-8';
@import '~@scss/helpers/_mixins.scss';
@import '~@scss/helpers/_utils.scss';
@import '~@scss/themes/index.scss';

.g2-login {
  position: relative;
  background-image: url(~@public/image/login.jpg);
  background-size: 100%;
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;

  &::after {
    position: absolute;
    top: 0;
    left: 0;
    content: '';
    background-color: #000000;
    opacity: 0.2;
    z-index: 1;
    width: 100%;
    height: 100%;
  }
  .login-info {
    flex: 1 1 auto;
    font-size: 0;
    color: #fff;
    padding: 0 32px;
    z-index: 2;
    // height: 100%;
    .login-info--wrapper {
      display: inline-block;
      width: 100%;
      vertical-align: middle;
    }
    .login-info--title {
      @include text-main();
      font-size: 32px;
      color: #fff;
      margin: 32px 0;
    }
  }
  .login-main {
    position: relative;
    flex: 0 0 550px;
    background-color: #fff;
    padding: 0 32px;
    min-height: 600px;
    height: 100%;
    font-size: 0;
    opacity: 0;
    z-index: 2;
    .login-main--wrapper {
      position: relative;
      display: inline-block;
      padding-bottom: 60px;
      width: 100%;
      height: 100%;
      box-sizing: border-box;
    }
    .login-main--container {
      display: inline-block;
      width: 100%;
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      left: 0;
      width: 100%;
      // opacity: 0;
    }
    .login-main--footer {
      position: absolute;
      bottom: 0;
      left: 0;
      height: 60px;
      width: 100%;
      text-align: center;
      line-height: 32px;
      padding: 14px 0;
      font-size: 14px;
    }
  }
  .login-title {
    margin-bottom: 32px;
  }
  .login-form {
    margin: 16px 0;
    display: inline-block;
    width: 100%;
    .login-form--row {
      margin-bottom: 24px;
    }
    .login-form--user {
      padding: 0;
    }
    .login-form--submit {
      width: 100%;
      margin-top: 8px;
    }
  }
  .el-input-group__append,
  .el-input-group__prepend {
    padding: 0 10px;
  }
}
